<?php
// Database login information
$host = 'localhost';
$username = 'root';
$password = '';
$db_name = 'easycharts';

// Connects to the database with a persistent connection
$ms = mysql_pconnect($host, $username, $password);
if (!$ms) {
    echo "Error connecting to the Database.\n";
}

// Selects the right Datbase
mysql_select_db($db_name);
?>
